const express = require("express");
const router = express.Router();
const userController = require("../controller/userController");
const userValidator = require('../middleware/validator/userValidator')
const verify = require("../util/jwt");

router
.post("/register",userValidator.register,userController.register)
.post("/logins",userValidator.login,userController.login)
.get("/getLists",verify.verifyToken,userController.getList);

module.exports = router;
